package com.ase.singleton.single;

/**
 * @author gyhstart
 * @create 2021/3/6 - 10:38
 **/
public class test2 {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            new Thread(new MyThread()).start();
        }
    }

    static class MyThread extends Thread {
        @Override
        public void run() {
            super.run();
            System.out.println("Singleton2.getInstance() = " + Single3.getInstance());
        }
    }
}
